//
//  APYahooDataPullerGraph.h
//  StockPlot
//
//  Created by Jonathan Saggau on 6/19/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "APYahooDataPuller.h"
#import "CorePlot-CocoaTouch.h"

@interface APYahooDataPullerGraph : UIViewController <APYahooDataPullerDelegate, CPPlotDataSource> {
    CPLayerHostingView *layerHost;
    APYahooDataPuller *dataPuller;
   
	CPTextLayer *layer;
	//增加笑傲曲線
	NSMutableArray *plotIdentfy;
	NSMutableArray *dataForPlot_Array;
	
	UISegmentedControl *segmetnctl;

@private
    CPXYGraph *graph;
}
//增加笑傲曲線
-(CPScatterPlot *)addnewplot:(CPXYGraph *)grapha identifier:(NSString *)ident andlinecolor:(CPColor *)linecolor; 
-(NSMutableArray *)addplotarrayStart:(NSUInteger)i leng:(NSUInteger)end_i;

-(void) segmentChanged:(id)sender;

@property (nonatomic, retain) IBOutlet CPLayerHostingView *layerHost;
@property (nonatomic, retain) APYahooDataPuller *dataPuller;

@end
